export default {
  authorization(state, data) {
    state.authorization = data;
  },
  collapse(state, collapse) {
    state.collapse = collapse;
  },
  toggleCollapse(state) {
    state.collapse = !state.collapse;
  },
  userInfo(state, userInfo) {
    state.userInfo = {...userInfo};
  },
  menus(state, menus) {
    state.menus = menus;
  },
  permissions(state, permissions) {
    state.permissions = permissions;
  },
};
